<?php
    include "admin_goods.php";

$id=$_REQUEST['id'];
// var_dump($id);

mysqli_select_db($conn,"shopping");
    //SQL模板
    $sql = "delete from goods where id='$id'";

   $result=mysqli_query($conn,$sql);

     
    if (!$result){
        echo '数据删除失败！';
    }else{
        echo '数据删除成功！';
    }
    
    mysqli_close($conn);
?>
